package com.wfuhui.modules.jieyue.service;

import com.wfuhui.modules.jieyue.entity.JieyueEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


/**
 * 借阅
 * 
 * Darryl
 * ""
 */
public interface JieyueService {
	
	JieyueEntity queryObject(Integer id);
	
	List<JieyueEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(JieyueEntity order);
	
	void update(JieyueEntity order);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void createOrder(JieyueEntity orderEntity);

	void updateByOrderNumber(JieyueEntity order);

	List<Map<String, String>> queryOrderCount();

	@Transactional
	void createJieyue(JieyueEntity Jieyue);

	void updateByJieyueNumber(JieyueEntity Jieyue);

	List<Map<String, String>> queryJieyueCount();

	void returnBook(JieyueEntity order);
}
